Skip to content

Define distance consistently as (x-y)^T*M*(x-y) #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Callidior
Copy link
Contributor

In particular, this fixes the transformers returned by ITML and LSML, improving their class-separation performance on the iris unit test:

Old New
ITML 0.362 0.167
LSML 0.730 0.698

The following now holds also for all learners, including ITML, LSML, SDML and the covariance method:

learner.transformer().T.dot(learner.transformer()) == learner.metric()

This PR fixes #57.

@Callidior Callidior mentioned this pull request May 23, 2017
Björn Barz added 2 commits May 23, 2017 11:25
Fixes the transformes returned by ITML and LSML.

The following now holds also for ITML, LSML, SDML and the covariance method:

    learner.transformer().T.dot(learner.transformer()) == learner.metric()
@Callidior Callidior force-pushed the metric-transformer-harmonization branch from d2d77c4 to 4555105 Compare May 23, 2017 09:30
@perimosocordiae perimosocordiae merged commit ddfac99 into scikit-learn-contrib:master Aug 3, 2017
@Callidior Callidior deleted the metric-transformer-harmonization branch August 3, 2017 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent conversion between transformer and metric
2 participants